package pt.biblioescala

import java.util.Date
import java.util.Formatter.DateTime
import java.util.Calendar

class Student (val name: String,
			   val classNumber: Char,
			   val year: Int,
			   val number: Int,
			   val lectiveYear: Int,
			   val banDate: Date) {

  def isBanned() = new Date().compareTo(banDate) <= 0
  
  override def toString() = "" + number + ", " + year +  ", '" + classNumber +  "', '" + name +  "', " + lectiveYear

}